package com.面试题.反射;

import com.面试题.反射.Person;

public class TestReflect {

    public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
        Class c1=Class.forName("com.面试题.反射.Person");
        Class c2=Class.forName("com.面试题.反射.Person");
        Class c3=Class.forName("com.面试题.反射.Person");
        System.out.println(c1==c2);
        System.out.println(c2);
        System.out.println(c3);
        System.out.println(c1.newInstance());
    }


}
